package com.google.code.hibernate.rest;

import org.hibernate.SessionFactory;

import com.google.code.hibernate.rest.example.EntityExample;
import com.google.code.hibernate.rest.example.ExampleSessionFactoryBuilder;

/**
 * 
 * @author wangzijian
 * 
 */
public class ExampleRestInterface extends RestInterface {

	private static final long serialVersionUID = 1L;


	@Override
	protected SessionFactory getSessionFactory() {
		SessionFactory sessionFactory = ExampleSessionFactoryBuilder.build();
		EntityExample.persistedFrom(sessionFactory);
		return sessionFactory;
	}

}
